package com.qf.mapper;

import com.qf.entity.User;
import com.qf.entity.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface UserMapper {

   User findUserById(int id);

   List<User> findAll();

   int addUser(User user);

   int deleteUser(int id);

   int updateUser(User user);

   User loginByUsernameAndPassword(@Param("username") String username,@Param("password") String password);

   List<User> findUserByMap(Map<String, Object> map);

   UserVO findUserWithOrdersById(int id);

   List<User> SearchUserByMap(HashMap<String, String> map);

   boolean deleteByIds(List<Integer> ids);

   void updateUserBySet(User user);
}
